from py2neo import Graph,Node,Relationship
from config import config

#  链接Neo4j数据库
def connect_to_neo4j():
    graph = Graph('bolt://localhost7687',auth=(config.neo4j_user,config.neo4j_password))
    return graph

def create_node_and_relationship():
    graph = connect_to_neo4j()
    #  定义Cypher语言，创建节点和关系
    create_node = "CREATE"("")